//- Author: wang885298.
//- Date   : 2017/6/19.
//- File   : approval.
@import "style";

body, html, #app {
  height: 100%;
}

.approval {
  padding-top: 44px;
  color: @mainFontColor;
  font-size: @mainTxtSize;
  height: 100%;
  //background-color: @contentBgColor;
  .page-infinite-loading {
    text-align: center;
    height: 50px;
    width: 100%;
    line-height: 50px;

    div {
      display: inline-block;
      vertical-align: middle;
      margin-right: 5px;
    }
  }

  .noAttachment {
    background-color: #fff;
    padding: 25px 10px;
    text-align: center;
  }

  .noData {
    min-height: 500px;
    text-align: center;
    padding: 150px 0;
    background-color: #f2f3f5;
  }

  .no-img {
    display: block;
    width: 10rem;
    margin: 80px auto 8px auto;

    img {
      width: 100%;
    }
  }

  &-list {
    background-color: @contentBgColor;

    &-item {
      border-bottom: 1px solid rgba(175, 175, 175, 0.3);
      padding: 10px;

      a {
        color: @mainFontColor !important;
      }

      .item-top {
        position: relative;
        padding-right: 100px;
        display: -webkit-box;
        overflow: hidden;
        text-overflow: ellipsis;
        word-break: break-all;
        /*! autoprefixer: off */
        -webkit-box-orient: vertical;
        /* autoprefixer: on */
        -webkit-line-clamp: 1;
        padding-bottom: 3px;
        font-size: @smallSize;

        &-right {
          position: absolute;
          right: 5px;
          top: 1.5px;
          color: #AFAFAF;
          font-size: @smallSize;
        }
      }

      .item-middle {
        display: -webkit-box;
        overflow: hidden;
        text-overflow: ellipsis;
        word-break: break-all;
        /*! autoprefixer: off */
        -webkit-box-orient: vertical;
        /* autoprefixer: on */
        -webkit-line-clamp: 1;
        padding-bottom: 0;
        color: #AFAFAF;
        font-size: @smallSize;
      }

      .item_bottom {
        &_done {
          font-size: @smallSize;
          color: #AFAFAF;
        }

        &_doing {
          font-size: @smallSize;
          color: @activeColor;

          &_nu {
            padding-right: 5px;
          }
        }
      }
    }
  }

  .datepickbox input {
    width: 100%;
  }

  .datepickbox {
    line-height: 46px;
  }

  &-list2 {
    background-color: @contentBgColor;

    &-item {
      padding: 18px 10px 0 7.4rem;
      position: relative;
      margin-bottom: 4px;
      border-top: 1px solid rgba(175, 175, 175, 0.4);

      .item-left {
        position: absolute;
        top: 18px;
        left: 10px;
        width: 5.6rem;
        height: 5.6rem;

        img {
          width: 100%;
          border-radius: 50%;
        }
      }

      .item-main {
        position: relative;
        color: #AFAFAF;
        font-size: @smallSize;
        padding-bottom: 12px;
        min-height: 65px;

        p {
          display: -webkit-box;
          overflow: hidden;
          text-overflow: ellipsis;
          word-break: break-all;
          /*! autoprefixer: off */
          -webkit-box-orient: vertical;
          /* autoprefixer: on */
          -webkit-line-clamp: 1;
        }

        &-title {
          color: @mainFontColor;
          margin-bottom: 5px;
          max-width: 70%;
        }

        &-right {
          position: absolute;
          right: 0;
          top: 0;
          color: #AFAFAF;
        }

        &-approval {
          color: @activeColor;
        }

        &-agree {
          color: #AFAFAF;
        }

        &-refuse {
          color: #FF5959;
        }

        .item_bottom {
          &_done {
            font-size: @smallSize;
            color: #AFAFAF;
          }

          &_reject {
            font-size: @smallSize;
            color: @importantColor;
          }

          &_doing {
            font-size: @smallSize;
            color: @activeColor;

            &_nu {
              padding-right: 5px;
            }
          }
        }
      }

      .item-btn {
        text-align: right;
        margin-top: 15px;
        margin-right: 5px;

        &-num {
          padding: 0.5rem 2rem;
          border: 1px solid rgba(1, 174, 240, 0.8);
          box-shadow: 0 0 5px rgba(1, 174, 240, 0.3);
          margin-left: 10px;
          border-radius: 25px;
          display: inline-block;
        }
      }

    }
  }

  &-build {
    font-size: @mainTxtSize;
    border-bottom: 1px solid rgba(175, 175, 175, 0.4);

    &-title {
      padding-bottom: 5px;
      background-image: -webkit-linear-gradient(bottom, #d9d9d9, #d9d9d9 50%, transparent 50%);
      background-image: linear-gradient(0deg, #d9d9d9, #d9d9d9 50%, transparent 50%);
      background-size: 100% 1px;
      background-repeat: no-repeat;
      background-position: bottom;

      .title {
        font-size: @mainTxtSize;
        text-align: center;
        padding-top: 10px;
      }

      .summary {
        font-size: @smallerSize;
        color: @greyFontColor;
        text-align: center;
        padding-top: 2px;
      }
    }

    &-content {
      .list-common {
        background-image: -webkit-linear-gradient(bottom, #d9d9d9, #d9d9d9 50%, transparent 50%);
        background-image: linear-gradient(0deg, #d9d9d9, #d9d9d9 50%, transparent 50%);
        background-size: 100% 1px;
        background-repeat: no-repeat;
        background-position: bottom;
        width: 100%;
        color: #afafaf;

        &-des {
          width: 100%;
          padding: 10px;

          span {
            color: #FF3038;
            padding-left: 2px;
          }
        }
      }

      .list {
        position: relative;
        background-image: -webkit-linear-gradient(bottom, #d9d9d9, #d9d9d9 50%, transparent 50%);
        background-image: linear-gradient(0deg, #d9d9d9, #d9d9d9 50%, transparent 50%);
        background-size: 100% 1px;
        background-repeat: no-repeat;
        background-position: bottom;
        padding-left: 45%;
        width: 100%;

        &-name {
          position: absolute;
          left: 10px;
          top: 14px;
          width: 45%;

          span {
            color: #FF3038;
            padding-left: 2px;
          }
        }

        &-main {
          background-image: -webkit-linear-gradient(bottom, #d9d9d9, #d9d9d9 50%, transparent 50%);
          background-image: linear-gradient(0deg, #d9d9d9, #d9d9d9 50%, transparent 50%);
          background-size: 100% 1px;
          background-repeat: no-repeat;
          background-position: bottom;
          line-height: 50px;

          input, select {
            width: 100%;
            line-height: 42px;
            margin: 3px 0;
            border: none;
            padding-right: 15px;
            text-align: right;
            color: @mainFontColor;
            font-size: @mainTxtSize;
          }
        }
      }

      .textArea {
        border-top: 10px solid #f2f3f5;
        border-bottom: 10px solid #f2f3f5;

        &-pos {
          position: absolute;
          top: 0;
          left: 0;
          z-index: 2;
          background-color: #fff;
          color: @defaultFontColor !important;
          background-image: none !important;
        }

        &-title {
          color: @greyFontColor;
          line-height: 46px;
          background-image: -webkit-linear-gradient(bottom, #d9d9d9, #d9d9d9 50%, transparent 50%);
          background-image: linear-gradient(0deg, #d9d9d9, #d9d9d9 50%, transparent 50%);
          background-size: 100% 1px;
          background-repeat: no-repeat;
          background-position: bottom;
          padding: 0 10px;

          span {
            color: #FF3038;
          }
        }

        &-areaContent {
          width: 100%;
          padding: 10px;
          border: none;
          font-size: @mainTxtSize;
          color: @defaultFontColor;
        }
      }
    }
  }

  .cc-content {
    .mint-cell-wrapper {
      background-image: none !important;
    }

    .mint-cell {
      background-image: -webkit-linear-gradient(bottom, #d9d9d9, #d9d9d9 50%, transparent 50%);
      background-image: linear-gradient(0deg, #d9d9d9, #d9d9d9 50%, transparent 50%);
      background-size: 100% 1px;
      background-repeat: no-repeat;
      background-position: bottom;
    }

    .mint-cell-wrapper {
      padding: 10px;
      color: @mainFontColor !important;
    }
  }

  .additional-content {
    .cc {
      border-top: 8px solid rgb(242, 242, 242);
      //border-bottom: 8px solid rgb(242,242,242);
    }

    .bottom-line {
      position: relative;
      border-bottom: 1px solid rgba(175, 175, 175, 0.3);

      .i-upload {
        position: absolute;
        right: 10px;
        top: 10px;
        color: @textColor;
      }
    }

    .data-list {
      background-color: #fff;
      padding: 10px;
      border-bottom: 1px solid rgba(175, 175, 175, 0.3);
      position: relative;

      .attachment-downloaded {
        position: absolute;
        color: #01cbf0;
        left: 11%;
        bottom: 23%;
        width: 15px;
        height: 15px;
      }
    }

    .data-list .icon-shenglve {
      float: right;
      font-size: 28px;
      position: absolute;
      right: 5px;
      top: 15px;
    }

    .data-list-detail {
      float: left;
      padding-left: 15px;
      max-width: 82%;
    }

    .data-list-detail p:nth-child(1) {
      font-size: @headerSize;
    }

    .data-list-detail p:nth-child(2) {
      color: #BCBCBC;
    }

    .line-space {
      padding: 0;
    }
  }

  .page-infinite-loading {
    text-align: center;
    height: 50px;
    width: 100%;
    line-height: 50px;

    div {
      display: inline-block;
      vertical-align: middle;
      margin-right: 5px;
    }
  }
}

.approval-cc {
  border-top: 1rem solid rgb(242, 242, 242);
  border-bottom: 1rem solid rgb(242, 242, 242);

  &-title {
    padding: 10px;
    color: #AFAFAF;
    position: relative;
    overflow: hidden;
  }

  &-title:after {
    position: absolute;
    content: '';
    border-bottom: 1px solid #e3e2e2;
    height: 1px;
    left: 30px;
    width: 100%;
    bottom: 0;
  }

  &-ul {
    overflow: hidden;

    .item {
      float: left;
      width: 25%;
      padding: 10px 6px;
      display: inline-block;

      &-pic {
        width: 5.8rem;
        height: 5.8rem;
        margin: 0 auto;

        img {
          width: 100%;
          //height: 100%;
          border-radius: 100%;
        }
      }

      &-summary {
        padding-top: 2px;
        color: #AFAFAF;
        text-align: center;
        font-size: 1.6rem;
      }
    }
  }
}

.approval-bottom {
  padding-bottom: 0;
}

.build-bottom {
  padding-bottom: 7.2rem;
}

.approval-button {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  background-color: #fff;
  z-index: 33;
}

.abnormal {
  margin: 50px auto;

  p {
    text-align: center;
    color: #afafaf;
    padding-bottom: 5px;
    font-size: 15px;
  }
}

.operation {
  border-top: 1px solid rgba(175, 175, 175, 0.3);
  background-color: #fff;
  z-index: 99;
}
